package cn.skyquant.quant4j.api.strategy;

import cn.skyquant.quant4j.api.dto.ResultDTO;

public interface StrategyTestService {
    ResultDTO<Integer> start(String strategyName,String version,String name,String userName,long beginDate,String paramstr,double initMoney);
    ResultDTO<Void> updateDaily(int id, long thedate, double balance, double equity, double open, double close, double high, double low);
    ResultDTO<Void> end(int id, long thedate, double equity);
    ResultDTO<Void> delete(int id);
    ResultDTO<Void> addOpen(int id, long thedate, String symbol, double openPrice, double amount,String action, Double sl, Double tp);
    ResultDTO<Void> addClose(int id, long thedate, String symbol, double avgPrice,double closePrice, double amount, String action,double profit,Double commission);
    ResultDTO<Void> addStatistics(int id, long beginTime, long endTime, double beginMoney, double endMoney, int tradeLevel,double profit, double amount,int distance);
}
